package com.ruoyi.dataSys.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 北斗定位信息管理对象 gps_data
 *
 * @author ruoyi
 * @date 2024-11-28
 */
public class GpsData implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 船的名称 */
    @Excel(name = "船的名称")
    private String name;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal lat;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal lon;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lasttime;

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setLat(BigDecimal lat)
    {
        this.lat = lat;
    }

    public BigDecimal getLat()
    {
        return lat;
    }
    public void setLon(BigDecimal lon)
    {
        this.lon = lon;
    }

    public BigDecimal getLon()
    {
        return lon;
    }
    public void setLasttime(Date lasttime)
    {
        this.lasttime = lasttime;
    }

    public Date getLasttime()
    {
        return lasttime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("lat", getLat())
            .append("lon", getLon())
            .append("lasttime", getLasttime())
            .toString();
    }
}
